package com.oa.hyperion.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.hyperion.entity.Outline;
import com.oa.hyperion.repository.OutlineMapper;
import com.oa.hyperion.service.OutlineService;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * @author Liu
 * @date 2022年01月17日 16:16
 */
@Service
public class OutlineServiceImpl extends ServiceImpl<OutlineMapper, Outline> implements OutlineService {
    private final OutlineMapper outlineMapper;

    public OutlineServiceImpl(OutlineMapper outlineMapper) {
        this.outlineMapper = outlineMapper;
    }

    @Override
    public List<Outline> findOutlinesByTemplate(int id) {
        return null;
    }

    @Override
    public Outline getByIdWithOutData(Integer id) {
        return null;
    }

    @Override
    public List<Outline> getByUid(Integer id) {
        return outlineMapper.findByUid(id);
    }

    @Override
    public void deleteOutline(Integer id) {
        outlineMapper.deleteOutline(id);
    }

    @Override
    public void updateOutline(Integer id) {
        outlineMapper.updateOutline(id);
    }
}
